package com.cw;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
@EnableScheduling
public class CwApplication {

   /*此项目为双数据源项目 mapper文件为:本系统内部的数据库
   *                   mapper2 为医院his数据库
   * 你的mapper类放哪儿个文件夹下,他就走哪个数据库。不要搞错了
   * -------------------------------------------祝你好运
   *                         author:ly since:2021-05-19
   */

    public static void main(String[] args) {
        SpringApplication.run(CwApplication.class, args);
        System.out.println("-------------======= 华丽的分割线 =========----------");
        //返回Java虚拟机中的堆内存总量
        long xmsMemory = Runtime.getRuntime().totalMemory() / 1024 / 1024;
        //返回Java虚拟机中使用的最大堆内存
        long xmxMemory = Runtime.getRuntime().maxMemory() / 1024 / 1024;
        System.out.println("-Xms:" + xmsMemory + "M");
        System.out.println("-Xmx:" + xmxMemory + "M");
    }

}
